package scenic.toolkit;

import java.awt.geom.Rectangle2D;

import scenic.Color;
import scenic.Graphics;
import scenic.SceneContainer;
import scenic.toolkit.db.CharArray;
import scenic.toolkit.db.Property;

public class TextElementModel extends scenic.toolkit.ElementModel {
	private static Property<TextStyle> styleProperty = new Property<TextStyle>("style");
	private static Property<CharArray> textProperty = new Property<CharArray>("text");
	
	public TextElementModel() {
	}

	public TextElementModel(String text, TextStyle style) {
		setText(new CharArray(text));
		setStyle(style);
	}
	
	public ElementView createElement() {
		return new TextElementView(this);
	}
	
	public TextStyle getStyle() {
		return styleProperty.get(this);
	}

	public void setStyle(TextStyle style) {
		styleProperty.set(this, style);
	}

	public CharArray getText() {
		return textProperty.get(this);
	}

	public void setText(CharArray text) {
		textProperty.set(this, text);
	}
}
